<template>
    
</template>
<script>
var num = 10;
function js(){
    console.log(num);
}
function ope(js){
    //块作用域
    num = 20;
    js();
}

// ope(js);

var person = {
    eat: function(){
        console.log(this.eat);
    }
}
person.eat();

// console.log(num);
</script>